<!-- HTML header for doxygen 1.8.20-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=9"/>
	<meta name="generator" content="Doxygen 1.9.4"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title>Raspberry Pi Pico SDK: include/hardware/interp.h Source File</title>
	<!-- <link href="tabs.css" rel="stylesheet" type="text/css"/> -->
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="dynsections.js"></script>
	<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
	<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
	<link href="doxygen.css" rel="stylesheet" type="text/css" />
	<link href="normalise.css" rel="stylesheet" type="text/css"/>
<link href="main.css" rel="stylesheet" type="text/css"/>
<link href="styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div class="navigation-mobile">
		<div class="logo--mobile">
			<a href="/"><img src="logo-mobile.svg" alt="Raspberry Pi"></a>
		</div>
		<div class="navigation-toggle">
			<span class="line-1"></span>
			<span class="line-2">
				<p>Menu Toggle</p>
			</span>
			<span class="line-3"></span>
		</div>
	</div>
	<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
		<div class="logo">
			<a href="index.html"> <img src="logo.svg" alt="Raspberry Pi"></a>
			<span style="display: inline-block; margin-top: 10px;">
				v2.0.0
			</span>
		</div>
		<div class="navigation-footer">
			<img src="logo-mobile.svg" alt="Raspberry Pi">
			<a href="https://www.raspberrypi.com/" target="_blank">By Raspberry Pi Ltd</a>
		</div>
<!-- 		<div class="search">
			<form>
				<input type="search" name="search" id="search" placeholder="Search">
				<input type="submit" value="Search">
			</form>
		</div> -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('rp2__common_2hardware__interp_2include_2hardware_2interp_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">interp.h</div></div>
</div><!--header-->
<div class="contents">
<a href="rp2__common_2hardware__interp_2include_2hardware_2interp_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> *</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> */</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#ifndef _HARDWARE_INTERP_H</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#define _HARDWARE_INTERP_H</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &quot;<a class="code" href="pico_8h.html">pico.h</a>&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &quot;hardware/structs/interp.h&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &quot;hardware/regs/sio.h&quot;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="comment">// PICO_CONFIG: PARAM_ASSERTIONS_ENABLED_HARDWARE_INTERP, Enable/disable assertions in the hardware_interp module, type=bool, default=0, group=hardware_interp</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#ifndef PARAM_ASSERTIONS_ENABLED_HARDWARE_INTERP</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#ifdef PARAM_ASSERTIONS_ENABLED_INTERP </span><span class="comment">// backwards compatibility with SDK &lt; 2.0.0</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#define PARAM_ASSERTIONS_ENABLED_HARDWARE_INTERP PARAM_ASSERTIONS_ENABLED_INTERP</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#define PARAM_ASSERTIONS_ENABLED_HARDWARE_INTERP 0</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="preprocessor">#define interp0 interp0_hw</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span><span class="preprocessor">#define interp1 interp1_hw</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="structinterp__config.html">   58</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>    uint32_t ctrl;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>} <a class="code hl_struct" href="structinterp__config.html">interp_config</a>;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span><span class="keyword">static</span> <span class="keyword">inline</span> uint interp_index(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp) {</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>    valid_params_if(HARDWARE_INTERP, interp == interp0 || interp == interp1);</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>    <span class="keywordflow">return</span> interp == interp1 ? 1 : 0;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>}</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__interp.html#ga4bf868768cfc42e621211d9dea8cc9bf">interp_claim_lane</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane);</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span><span class="comment">// The above really should be called this for consistency</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span><span class="preprocessor">#define interp_lane_claim interp_claim_lane</span></div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__interp.html#ga7da3e2eec0075ae39bf648b6a3b6feb9">interp_claim_lane_mask</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane_mask);</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__interp.html#ga47d82417be5f875a1060384eada84147">interp_unclaim_lane</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane);</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span><span class="comment">// The above really should be called this for consistency</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span><span class="preprocessor">#define interp_lane_unclaim interp_unclaim_lane</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span><span class="keywordtype">bool</span> <a class="code hl_function" href="group__hardware__interp.html#gaf5bfa88632de76db56f01e3f22d705e0">interp_lane_is_claimed</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane);</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__interp.html#ga8b6dfe0f72bb43788ff10d25d6b17403">interp_unclaim_lane_mask</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane_mask);</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="group__interp__config.html#ga30d763b581c679c02cefe2fa90d8c8a7">  126</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__interp__config.html#ga30d763b581c679c02cefe2fa90d8c8a7">interp_config_set_shift</a>(<a class="code hl_struct" href="structinterp__config.html">interp_config</a> *c, uint shift) {</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>    valid_params_if(HARDWARE_INTERP, shift &lt; 32);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>    c-&gt;ctrl = (c-&gt;ctrl &amp; ~SIO_INTERP0_CTRL_LANE0_SHIFT_BITS) |</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>              ((shift &lt;&lt; SIO_INTERP0_CTRL_LANE0_SHIFT_LSB) &amp; SIO_INTERP0_CTRL_LANE0_SHIFT_BITS);</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>}</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"><a class="line" href="group__interp__config.html#ga32f22fb5240d4b53a62a0dfcb838b56d">  141</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__interp__config.html#ga32f22fb5240d4b53a62a0dfcb838b56d">interp_config_set_mask</a>(<a class="code hl_struct" href="structinterp__config.html">interp_config</a> *c, uint mask_lsb, uint mask_msb) {</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>    valid_params_if(HARDWARE_INTERP, mask_msb &lt; 32);</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>    valid_params_if(HARDWARE_INTERP, mask_lsb &lt;= mask_msb);</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>    c-&gt;ctrl = (c-&gt;ctrl &amp; ~(SIO_INTERP0_CTRL_LANE0_MASK_LSB_BITS | SIO_INTERP0_CTRL_LANE0_MASK_MSB_BITS)) |</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>              ((mask_lsb &lt;&lt; SIO_INTERP0_CTRL_LANE0_MASK_LSB_LSB) &amp; SIO_INTERP0_CTRL_LANE0_MASK_LSB_BITS) |</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>              ((mask_msb &lt;&lt; SIO_INTERP0_CTRL_LANE0_MASK_MSB_LSB) &amp; SIO_INTERP0_CTRL_LANE0_MASK_MSB_BITS);</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>}</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"><a class="line" href="group__interp__config.html#gaeb64e0515ebeabd2fdd4c64712c6e3f9">  159</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__interp__config.html#gaeb64e0515ebeabd2fdd4c64712c6e3f9">interp_config_set_cross_input</a>(<a class="code hl_struct" href="structinterp__config.html">interp_config</a> *c, <span class="keywordtype">bool</span> cross_input) {</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span>    c-&gt;ctrl = (c-&gt;ctrl &amp; ~SIO_INTERP0_CTRL_LANE0_CROSS_INPUT_BITS) |</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span>              (cross_input ? SIO_INTERP0_CTRL_LANE0_CROSS_INPUT_BITS : 0);</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>}</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span> </div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"><a class="line" href="group__interp__config.html#gadfdf4d9fff3f9a2154645f71ca47ddb1">  172</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__interp__config.html#gadfdf4d9fff3f9a2154645f71ca47ddb1">interp_config_set_cross_result</a>(<a class="code hl_struct" href="structinterp__config.html">interp_config</a> *c, <span class="keywordtype">bool</span> cross_result) {</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>    c-&gt;ctrl = (c-&gt;ctrl &amp; ~SIO_INTERP0_CTRL_LANE0_CROSS_RESULT_BITS) |</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span>              (cross_result ? SIO_INTERP0_CTRL_LANE0_CROSS_RESULT_BITS : 0);</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span>}</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span> </div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"><a class="line" href="group__interp__config.html#gaba828dabbf74d63c7d0677411840e8ea">  186</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__interp__config.html#gaba828dabbf74d63c7d0677411840e8ea">interp_config_set_signed</a>(<a class="code hl_struct" href="structinterp__config.html">interp_config</a> *c, <span class="keywordtype">bool</span> _signed) {</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span>    c-&gt;ctrl = (c-&gt;ctrl &amp; ~SIO_INTERP0_CTRL_LANE0_SIGNED_BITS) |</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span>              (_signed ? SIO_INTERP0_CTRL_LANE0_SIGNED_BITS : 0);</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span>}</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span> </div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"><a class="line" href="group__interp__config.html#ga881f960275b1e17ff004103640bc0258">  199</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__interp__config.html#ga881f960275b1e17ff004103640bc0258">interp_config_set_add_raw</a>(<a class="code hl_struct" href="structinterp__config.html">interp_config</a> *c, <span class="keywordtype">bool</span> add_raw) {</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span>    c-&gt;ctrl = (c-&gt;ctrl &amp; ~SIO_INTERP0_CTRL_LANE0_ADD_RAW_BITS) |</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span>              (add_raw ? SIO_INTERP0_CTRL_LANE0_ADD_RAW_BITS : 0);</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>}</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span> </div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"><a class="line" href="group__interp__config.html#ga494025486e3c301b46f241852dc7af46">  219</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__interp__config.html#ga494025486e3c301b46f241852dc7af46">interp_config_set_blend</a>(<a class="code hl_struct" href="structinterp__config.html">interp_config</a> *c, <span class="keywordtype">bool</span> blend) {</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>    c-&gt;ctrl = (c-&gt;ctrl &amp; ~SIO_INTERP0_CTRL_LANE0_BLEND_BITS) |</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span>              (blend ? SIO_INTERP0_CTRL_LANE0_BLEND_BITS : 0);</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span>}</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span> </div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"><a class="line" href="group__interp__config.html#ga0e94b2b16fb356cfa09703bb0bd0285e">  234</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__interp__config.html#ga0e94b2b16fb356cfa09703bb0bd0285e">interp_config_set_clamp</a>(<a class="code hl_struct" href="structinterp__config.html">interp_config</a> *c, <span class="keywordtype">bool</span> clamp) {</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno">  235</span>    c-&gt;ctrl = (c-&gt;ctrl &amp; ~SIO_INTERP1_CTRL_LANE0_CLAMP_BITS) |</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno">  236</span>              (clamp ? SIO_INTERP1_CTRL_LANE0_CLAMP_BITS : 0);</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span>}</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span> </div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"><a class="line" href="group__interp__config.html#ga1f8df0132623c69cffd0e66e1b679fae">  250</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__interp__config.html#ga1f8df0132623c69cffd0e66e1b679fae">interp_config_set_force_bits</a>(<a class="code hl_struct" href="structinterp__config.html">interp_config</a> *c, uint bits) {</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span>    invalid_params_if(HARDWARE_INTERP, bits &gt; 3);</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno">  252</span>    <span class="comment">// note cannot use hw_set_bits on SIO</span></div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span>    c-&gt;ctrl = (c-&gt;ctrl &amp; ~SIO_INTERP0_CTRL_LANE0_FORCE_MSB_BITS) |</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span>              (bits &lt;&lt; SIO_INTERP0_CTRL_LANE0_FORCE_MSB_LSB);</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno">  255</span>}</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno">  256</span> </div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"><a class="line" href="group__interp__config.html#ga171e5080ebbdf84745bd5c6a4fada90e">  262</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <a class="code hl_struct" href="structinterp__config.html">interp_config</a> <a class="code hl_function" href="group__interp__config.html#ga171e5080ebbdf84745bd5c6a4fada90e">interp_default_config</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno">  263</span>    <a class="code hl_struct" href="structinterp__config.html">interp_config</a> c = {0};</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span>    <span class="comment">// Just pass through everything</span></div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span>    <a class="code hl_function" href="group__interp__config.html#ga32f22fb5240d4b53a62a0dfcb838b56d">interp_config_set_mask</a>(&amp;c, 0, 31);</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span>    <span class="keywordflow">return</span> c;</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span>}</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span> </div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"><a class="line" href="group__interp__config.html#gace3f9a4de8e142d76cd54a54ad67a296">  280</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__interp__config.html#gace3f9a4de8e142d76cd54a54ad67a296">interp_set_config</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane, <a class="code hl_struct" href="structinterp__config.html">interp_config</a> *config) {</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno">  281</span>    invalid_params_if(HARDWARE_INTERP, lane &gt; 1);</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span>    invalid_params_if(HARDWARE_INTERP, config-&gt;ctrl &amp; SIO_INTERP1_CTRL_LANE0_CLAMP_BITS &amp;&amp;</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno">  283</span>                              (!interp_index(interp) || lane)); <span class="comment">// only interp1 lane 0 has clamp bit</span></div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno">  284</span>    invalid_params_if(HARDWARE_INTERP, config-&gt;ctrl &amp; SIO_INTERP0_CTRL_LANE0_BLEND_BITS &amp;&amp;</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno">  285</span>                              (interp_index(interp) || lane)); <span class="comment">// only interp0 lane 0 has blend bit</span></div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span>    interp-&gt;ctrl[lane] = config-&gt;ctrl;</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span>}</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span> </div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"><a class="line" href="group__hardware__interp.html#ga839a103a740e190e7dc1b1313afb11a3">  302</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__interp.html#ga839a103a740e190e7dc1b1313afb11a3">interp_set_force_bits</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane, uint bits) {</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span>    <span class="comment">// note cannot use hw_set_bits on SIO</span></div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span>    interp-&gt;ctrl[lane] = interp-&gt;ctrl[lane] | (bits &lt;&lt; SIO_INTERP0_CTRL_LANE0_FORCE_MSB_LSB);</div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span>}</div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno">  306</span> </div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"><a class="line" href="structinterp__hw__save__t.html">  307</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno">  308</span>    uint32_t accum[2];</div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno">  309</span>    uint32_t base[3];</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno">  310</span>    uint32_t ctrl[2];</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span>} <a class="code hl_struct" href="structinterp__hw__save__t.html">interp_hw_save_t</a>;</div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno">  312</span> </div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno">  322</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__interp.html#ga87a06576cf02918ed74f15415b1517f2">interp_save</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, <a class="code hl_struct" href="structinterp__hw__save__t.html">interp_hw_save_t</a> *saver);</div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno">  323</span> </div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno">  330</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__interp.html#ga35e7824263e623c7e2d54a74b2631c61">interp_restore</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, <a class="code hl_struct" href="structinterp__hw__save__t.html">interp_hw_save_t</a> *saver);</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno">  331</span> </div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"><a class="line" href="group__hardware__interp.html#gaa213d0a845f57c719593fa8be01482f1">  339</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__interp.html#gaa213d0a845f57c719593fa8be01482f1">interp_set_base</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane, uint32_t val) {</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno">  340</span>    interp-&gt;base[lane] = val;</div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno">  341</span>}</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno">  342</span> </div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno"><a class="line" href="group__hardware__interp.html#ga1d89466df907cb1515b639813ee34837">  350</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint32_t <a class="code hl_function" href="group__hardware__interp.html#ga1d89466df907cb1515b639813ee34837">interp_get_base</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane) {</div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno">  351</span>    <span class="keywordflow">return</span> interp-&gt;base[lane];</div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno">  352</span>}</div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno">  353</span> </div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"><a class="line" href="group__hardware__interp.html#ga25479c3fa9137c52fc22c1c9a796ab93">  363</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__interp.html#ga25479c3fa9137c52fc22c1c9a796ab93">interp_set_base_both</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint32_t val) {</div>
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno">  364</span>    interp-&gt;base01 = val;</div>
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno">  365</span>}</div>
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno">  366</span> </div>
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno">  367</span> </div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"><a class="line" href="group__hardware__interp.html#gae544ffb8c39587a43e69e3644f6da5d2">  375</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__interp.html#gae544ffb8c39587a43e69e3644f6da5d2">interp_set_accumulator</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane, uint32_t val) {</div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno">  376</span>    interp-&gt;accum[lane] = val;</div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno">  377</span>}</div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno">  378</span> </div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno"><a class="line" href="group__hardware__interp.html#gaae77d8dbe417020c1d707b05b6a164ae">  386</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint32_t <a class="code hl_function" href="group__hardware__interp.html#gaae77d8dbe417020c1d707b05b6a164ae">interp_get_accumulator</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane) {</div>
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno">  387</span>    <span class="keywordflow">return</span> interp-&gt;accum[lane];</div>
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno">  388</span>}</div>
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno">  389</span> </div>
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno"><a class="line" href="group__hardware__interp.html#gaf831284340273ce3eb6b11974424dc1b">  397</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint32_t <a class="code hl_function" href="group__hardware__interp.html#gaf831284340273ce3eb6b11974424dc1b">interp_pop_lane_result</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane) {</div>
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno">  398</span>    <span class="keywordflow">return</span> interp-&gt;pop[lane];</div>
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno">  399</span>}</div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno">  400</span> </div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"><a class="line" href="group__hardware__interp.html#gafc04844f6c02d3f942f8ee95fca144ef">  408</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint32_t <a class="code hl_function" href="group__hardware__interp.html#gafc04844f6c02d3f942f8ee95fca144ef">interp_peek_lane_result</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane) {</div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span>    <span class="keywordflow">return</span> interp-&gt;peek[lane];</div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno">  410</span>}</div>
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno">  411</span> </div>
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno"><a class="line" href="group__hardware__interp.html#gab438b641a65e536f3bcec411596988a2">  418</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint32_t <a class="code hl_function" href="group__hardware__interp.html#gab438b641a65e536f3bcec411596988a2">interp_pop_full_result</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp) {</div>
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno">  419</span>    <span class="keywordflow">return</span> interp-&gt;pop[2];</div>
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno">  420</span>}</div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno">  421</span> </div>
<div class="line"><a id="l00428" name="l00428"></a><span class="lineno"><a class="line" href="group__hardware__interp.html#gaadc9a108c4c4c0255062b56967c157cc">  428</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint32_t <a class="code hl_function" href="group__hardware__interp.html#gaadc9a108c4c4c0255062b56967c157cc">interp_peek_full_result</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp) {</div>
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno">  429</span>    <span class="keywordflow">return</span> interp-&gt;peek[2];</div>
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno">  430</span>}</div>
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno">  431</span> </div>
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno"><a class="line" href="group__hardware__interp.html#gae90bdfe6d73365cf3bed859ca288f928">  441</a></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="group__hardware__interp.html#gae90bdfe6d73365cf3bed859ca288f928">interp_add_accumulater</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane, uint32_t val) {</div>
<div class="line"><a id="l00442" name="l00442"></a><span class="lineno">  442</span>    interp-&gt;add_raw[lane] = val;</div>
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno">  443</span>}</div>
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno">  444</span> </div>
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno"><a class="line" href="group__hardware__interp.html#ga20a0a099084a94e006e68f555685421a">  454</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint32_t <a class="code hl_function" href="group__hardware__interp.html#ga20a0a099084a94e006e68f555685421a">interp_get_raw</a>(<a class="code hl_struct" href="structinterp__hw__t.html">interp_hw_t</a> *interp, uint lane) {</div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno">  455</span>    <span class="keywordflow">return</span> interp-&gt;add_raw[lane];</div>
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno">  456</span>}</div>
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno">  457</span> </div>
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno">  458</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno">  459</span>}</div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno">  460</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno">  461</span> </div>
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno">  462</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="agroup__hardware__interp_html_ga1d89466df907cb1515b639813ee34837"><div class="ttname"><a href="group__hardware__interp.html#ga1d89466df907cb1515b639813ee34837">interp_get_base</a></div><div class="ttdeci">static uint32_t interp_get_base(interp_hw_t *interp, uint lane)</div><div class="ttdoc">Gets the content of interpolator base register by lane.</div><div class="ttdef"><b>Definition:</b> interp.h:350</div></div>
<div class="ttc" id="agroup__hardware__interp_html_ga20a0a099084a94e006e68f555685421a"><div class="ttname"><a href="group__hardware__interp.html#ga20a0a099084a94e006e68f555685421a">interp_get_raw</a></div><div class="ttdeci">static uint32_t interp_get_raw(interp_hw_t *interp, uint lane)</div><div class="ttdoc">Get raw lane value.</div><div class="ttdef"><b>Definition:</b> interp.h:454</div></div>
<div class="ttc" id="agroup__hardware__interp_html_ga25479c3fa9137c52fc22c1c9a796ab93"><div class="ttname"><a href="group__hardware__interp.html#ga25479c3fa9137c52fc22c1c9a796ab93">interp_set_base_both</a></div><div class="ttdeci">static void interp_set_base_both(interp_hw_t *interp, uint32_t val)</div><div class="ttdoc">Sets the interpolator base registers simultaneously.</div><div class="ttdef"><b>Definition:</b> interp.h:363</div></div>
<div class="ttc" id="agroup__hardware__interp_html_ga35e7824263e623c7e2d54a74b2631c61"><div class="ttname"><a href="group__hardware__interp.html#ga35e7824263e623c7e2d54a74b2631c61">interp_restore</a></div><div class="ttdeci">void interp_restore(interp_hw_t *interp, interp_hw_save_t *saver)</div><div class="ttdoc">Restore an interpolator state.</div><div class="ttdef"><b>Definition:</b> interp.c:58</div></div>
<div class="ttc" id="agroup__hardware__interp_html_ga47d82417be5f875a1060384eada84147"><div class="ttname"><a href="group__hardware__interp.html#ga47d82417be5f875a1060384eada84147">interp_unclaim_lane</a></div><div class="ttdeci">void interp_unclaim_lane(interp_hw_t *interp, uint lane)</div><div class="ttdoc">Release a previously claimed interpolator lane.</div><div class="ttdef"><b>Definition:</b> interp.c:32</div></div>
<div class="ttc" id="agroup__hardware__interp_html_ga4bf868768cfc42e621211d9dea8cc9bf"><div class="ttname"><a href="group__hardware__interp.html#ga4bf868768cfc42e621211d9dea8cc9bf">interp_claim_lane</a></div><div class="ttdeci">void interp_claim_lane(interp_hw_t *interp, uint lane)</div><div class="ttdoc">Claim the interpolator lane specified.</div><div class="ttdef"><b>Definition:</b> interp.c:21</div></div>
<div class="ttc" id="agroup__hardware__interp_html_ga7da3e2eec0075ae39bf648b6a3b6feb9"><div class="ttname"><a href="group__hardware__interp.html#ga7da3e2eec0075ae39bf648b6a3b6feb9">interp_claim_lane_mask</a></div><div class="ttdeci">void interp_claim_lane_mask(interp_hw_t *interp, uint lane_mask)</div><div class="ttdoc">Claim the interpolator lanes specified in the mask.</div><div class="ttdef"><b>Definition:</b> interp.c:26</div></div>
<div class="ttc" id="agroup__hardware__interp_html_ga839a103a740e190e7dc1b1313afb11a3"><div class="ttname"><a href="group__hardware__interp.html#ga839a103a740e190e7dc1b1313afb11a3">interp_set_force_bits</a></div><div class="ttdeci">static void interp_set_force_bits(interp_hw_t *interp, uint lane, uint bits)</div><div class="ttdoc">Directly set the force bits on a specified lane.</div><div class="ttdef"><b>Definition:</b> interp.h:302</div></div>
<div class="ttc" id="agroup__hardware__interp_html_ga87a06576cf02918ed74f15415b1517f2"><div class="ttname"><a href="group__hardware__interp.html#ga87a06576cf02918ed74f15415b1517f2">interp_save</a></div><div class="ttdeci">void interp_save(interp_hw_t *interp, interp_hw_save_t *saver)</div><div class="ttdoc">Save the specified interpolator state.</div><div class="ttdef"><b>Definition:</b> interp.c:48</div></div>
<div class="ttc" id="agroup__hardware__interp_html_ga8b6dfe0f72bb43788ff10d25d6b17403"><div class="ttname"><a href="group__hardware__interp.html#ga8b6dfe0f72bb43788ff10d25d6b17403">interp_unclaim_lane_mask</a></div><div class="ttdeci">void interp_unclaim_lane_mask(interp_hw_t *interp, uint lane_mask)</div><div class="ttdoc">Release previously claimed interpolator lanes.</div><div class="ttdef"><b>Definition:</b> interp.c:42</div></div>
<div class="ttc" id="agroup__hardware__interp_html_gaa213d0a845f57c719593fa8be01482f1"><div class="ttname"><a href="group__hardware__interp.html#gaa213d0a845f57c719593fa8be01482f1">interp_set_base</a></div><div class="ttdeci">static void interp_set_base(interp_hw_t *interp, uint lane, uint32_t val)</div><div class="ttdoc">Sets the interpolator base register by lane.</div><div class="ttdef"><b>Definition:</b> interp.h:339</div></div>
<div class="ttc" id="agroup__hardware__interp_html_gaadc9a108c4c4c0255062b56967c157cc"><div class="ttname"><a href="group__hardware__interp.html#gaadc9a108c4c4c0255062b56967c157cc">interp_peek_full_result</a></div><div class="ttdeci">static uint32_t interp_peek_full_result(interp_hw_t *interp)</div><div class="ttdoc">Read lane result.</div><div class="ttdef"><b>Definition:</b> interp.h:428</div></div>
<div class="ttc" id="agroup__hardware__interp_html_gaae77d8dbe417020c1d707b05b6a164ae"><div class="ttname"><a href="group__hardware__interp.html#gaae77d8dbe417020c1d707b05b6a164ae">interp_get_accumulator</a></div><div class="ttdeci">static uint32_t interp_get_accumulator(interp_hw_t *interp, uint lane)</div><div class="ttdoc">Gets the content of the interpolator accumulator register by lane.</div><div class="ttdef"><b>Definition:</b> interp.h:386</div></div>
<div class="ttc" id="agroup__hardware__interp_html_gab438b641a65e536f3bcec411596988a2"><div class="ttname"><a href="group__hardware__interp.html#gab438b641a65e536f3bcec411596988a2">interp_pop_full_result</a></div><div class="ttdeci">static uint32_t interp_pop_full_result(interp_hw_t *interp)</div><div class="ttdoc">Read lane result, and write lane results to both accumulators to update the interpolator.</div><div class="ttdef"><b>Definition:</b> interp.h:418</div></div>
<div class="ttc" id="agroup__hardware__interp_html_gae544ffb8c39587a43e69e3644f6da5d2"><div class="ttname"><a href="group__hardware__interp.html#gae544ffb8c39587a43e69e3644f6da5d2">interp_set_accumulator</a></div><div class="ttdeci">static void interp_set_accumulator(interp_hw_t *interp, uint lane, uint32_t val)</div><div class="ttdoc">Sets the interpolator accumulator register by lane.</div><div class="ttdef"><b>Definition:</b> interp.h:375</div></div>
<div class="ttc" id="agroup__hardware__interp_html_gae90bdfe6d73365cf3bed859ca288f928"><div class="ttname"><a href="group__hardware__interp.html#gae90bdfe6d73365cf3bed859ca288f928">interp_add_accumulater</a></div><div class="ttdeci">static void interp_add_accumulater(interp_hw_t *interp, uint lane, uint32_t val)</div><div class="ttdoc">Add to accumulator.</div><div class="ttdef"><b>Definition:</b> interp.h:441</div></div>
<div class="ttc" id="agroup__hardware__interp_html_gaf5bfa88632de76db56f01e3f22d705e0"><div class="ttname"><a href="group__hardware__interp.html#gaf5bfa88632de76db56f01e3f22d705e0">interp_lane_is_claimed</a></div><div class="ttdeci">bool interp_lane_is_claimed(interp_hw_t *interp, uint lane)</div><div class="ttdoc">Determine if an interpolator lane is claimed.</div><div class="ttdef"><b>Definition:</b> interp.c:37</div></div>
<div class="ttc" id="agroup__hardware__interp_html_gaf831284340273ce3eb6b11974424dc1b"><div class="ttname"><a href="group__hardware__interp.html#gaf831284340273ce3eb6b11974424dc1b">interp_pop_lane_result</a></div><div class="ttdeci">static uint32_t interp_pop_lane_result(interp_hw_t *interp, uint lane)</div><div class="ttdoc">Read lane result, and write lane results to both accumulators to update the interpolator.</div><div class="ttdef"><b>Definition:</b> interp.h:397</div></div>
<div class="ttc" id="agroup__hardware__interp_html_gafc04844f6c02d3f942f8ee95fca144ef"><div class="ttname"><a href="group__hardware__interp.html#gafc04844f6c02d3f942f8ee95fca144ef">interp_peek_lane_result</a></div><div class="ttdeci">static uint32_t interp_peek_lane_result(interp_hw_t *interp, uint lane)</div><div class="ttdoc">Read lane result.</div><div class="ttdef"><b>Definition:</b> interp.h:408</div></div>
<div class="ttc" id="agroup__interp__config_html_ga0e94b2b16fb356cfa09703bb0bd0285e"><div class="ttname"><a href="group__interp__config.html#ga0e94b2b16fb356cfa09703bb0bd0285e">interp_config_set_clamp</a></div><div class="ttdeci">static void interp_config_set_clamp(interp_config *c, bool clamp)</div><div class="ttdoc">Set interpolator clamp mode (Interpolator 1 only)</div><div class="ttdef"><b>Definition:</b> interp.h:234</div></div>
<div class="ttc" id="agroup__interp__config_html_ga171e5080ebbdf84745bd5c6a4fada90e"><div class="ttname"><a href="group__interp__config.html#ga171e5080ebbdf84745bd5c6a4fada90e">interp_default_config</a></div><div class="ttdeci">static interp_config interp_default_config(void)</div><div class="ttdoc">Get a default configuration.</div><div class="ttdef"><b>Definition:</b> interp.h:262</div></div>
<div class="ttc" id="agroup__interp__config_html_ga1f8df0132623c69cffd0e66e1b679fae"><div class="ttname"><a href="group__interp__config.html#ga1f8df0132623c69cffd0e66e1b679fae">interp_config_set_force_bits</a></div><div class="ttdeci">static void interp_config_set_force_bits(interp_config *c, uint bits)</div><div class="ttdoc">Set interpolator Force bits.</div><div class="ttdef"><b>Definition:</b> interp.h:250</div></div>
<div class="ttc" id="agroup__interp__config_html_ga30d763b581c679c02cefe2fa90d8c8a7"><div class="ttname"><a href="group__interp__config.html#ga30d763b581c679c02cefe2fa90d8c8a7">interp_config_set_shift</a></div><div class="ttdeci">static void interp_config_set_shift(interp_config *c, uint shift)</div><div class="ttdoc">Set the interpolator shift value.</div><div class="ttdef"><b>Definition:</b> interp.h:126</div></div>
<div class="ttc" id="agroup__interp__config_html_ga32f22fb5240d4b53a62a0dfcb838b56d"><div class="ttname"><a href="group__interp__config.html#ga32f22fb5240d4b53a62a0dfcb838b56d">interp_config_set_mask</a></div><div class="ttdeci">static void interp_config_set_mask(interp_config *c, uint mask_lsb, uint mask_msb)</div><div class="ttdoc">Set the interpolator mask range.</div><div class="ttdef"><b>Definition:</b> interp.h:141</div></div>
<div class="ttc" id="agroup__interp__config_html_ga494025486e3c301b46f241852dc7af46"><div class="ttname"><a href="group__interp__config.html#ga494025486e3c301b46f241852dc7af46">interp_config_set_blend</a></div><div class="ttdeci">static void interp_config_set_blend(interp_config *c, bool blend)</div><div class="ttdoc">Set blend mode.</div><div class="ttdef"><b>Definition:</b> interp.h:219</div></div>
<div class="ttc" id="agroup__interp__config_html_ga881f960275b1e17ff004103640bc0258"><div class="ttname"><a href="group__interp__config.html#ga881f960275b1e17ff004103640bc0258">interp_config_set_add_raw</a></div><div class="ttdeci">static void interp_config_set_add_raw(interp_config *c, bool add_raw)</div><div class="ttdoc">Set raw add option.</div><div class="ttdef"><b>Definition:</b> interp.h:199</div></div>
<div class="ttc" id="agroup__interp__config_html_gaba828dabbf74d63c7d0677411840e8ea"><div class="ttname"><a href="group__interp__config.html#gaba828dabbf74d63c7d0677411840e8ea">interp_config_set_signed</a></div><div class="ttdeci">static void interp_config_set_signed(interp_config *c, bool _signed)</div><div class="ttdoc">Set sign extension.</div><div class="ttdef"><b>Definition:</b> interp.h:186</div></div>
<div class="ttc" id="agroup__interp__config_html_gace3f9a4de8e142d76cd54a54ad67a296"><div class="ttname"><a href="group__interp__config.html#gace3f9a4de8e142d76cd54a54ad67a296">interp_set_config</a></div><div class="ttdeci">static void interp_set_config(interp_hw_t *interp, uint lane, interp_config *config)</div><div class="ttdoc">Send configuration to a lane.</div><div class="ttdef"><b>Definition:</b> interp.h:280</div></div>
<div class="ttc" id="agroup__interp__config_html_gadfdf4d9fff3f9a2154645f71ca47ddb1"><div class="ttname"><a href="group__interp__config.html#gadfdf4d9fff3f9a2154645f71ca47ddb1">interp_config_set_cross_result</a></div><div class="ttdeci">static void interp_config_set_cross_result(interp_config *c, bool cross_result)</div><div class="ttdoc">Enable cross results.</div><div class="ttdef"><b>Definition:</b> interp.h:172</div></div>
<div class="ttc" id="agroup__interp__config_html_gaeb64e0515ebeabd2fdd4c64712c6e3f9"><div class="ttname"><a href="group__interp__config.html#gaeb64e0515ebeabd2fdd4c64712c6e3f9">interp_config_set_cross_input</a></div><div class="ttdeci">static void interp_config_set_cross_input(interp_config *c, bool cross_input)</div><div class="ttdoc">Enable cross input.</div><div class="ttdef"><b>Definition:</b> interp.h:159</div></div>
<div class="ttc" id="apico_8h_html"><div class="ttname"><a href="pico_8h.html">pico.h</a></div></div>
<div class="ttc" id="astructinterp__config_html"><div class="ttname"><a href="structinterp__config.html">interp_config</a></div><div class="ttdef"><b>Definition:</b> interp.h:58</div></div>
<div class="ttc" id="astructinterp__hw__save__t_html"><div class="ttname"><a href="structinterp__hw__save__t.html">interp_hw_save_t</a></div><div class="ttdef"><b>Definition:</b> interp.h:307</div></div>
<div class="ttc" id="astructinterp__hw__t_html"><div class="ttname"><a href="structinterp__hw__t.html">interp_hw_t</a></div><div class="ttdef"><b>Definition:</b> interp.h:26</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->

	<script src="main.js"></script>
</body>
</html>